package com.knowledge.service;

import com.knowledge.vo.CommentVo;
import com.knowledge.vo.Result;
import com.knowledge.vo.params.CommentParam;

import java.util.List;

/**
 * @author zzz
 * @create 2022-02-11 21:33
 */
public interface CommentService {
    /**
     * 根据文章id获取评论
     * @param id
     * @return
     */
    Result viewCommentsByArticleId(Long id);

    /**
     * 查询二级评论
     * @param commentId
     * @return
     */
    List<CommentVo> findCommentByParentId(Long commentId);

    /**
     * 用户评论
     * @param commentParam
     * @return
     */
    Result comment(CommentParam commentParam);

//    Comment findArticleIdById(Long id);
}
